package util.apps.gump;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class GumpToolPanel  extends JPanel implements ActionListener{

	//fields
	public static final Font SMALLFONT = new Font("Dialog",Font.PLAIN,10);

	public GumpToolPanel(){
		setBackground(Color.WHITE);
		JButton launch = makeButton("Start Job");
		JButton reset = makeButton("Reset Form");
		JButton kill = makeButton("Kill Job");
	}
	
	public JButton makeButton(String label){
		JButton button = new JButton(label);
		button.addActionListener(this);
		button.setFont(SMALLFONT);
		add(button);
		return button;
	}
	
	public void actionPerformed(ActionEvent e) {
		String command = e.getActionCommand();
	    if ("Start Job".equals(command)) {
	    	System.out.println("Start Job");
	    } 
	    else if ("Reset Form".equals(command)) {
	    	System.out.println("Reset Form");
	    }
	    else System.out.println("Kill Job");
	}

}
